package com.uniview.eumn;

/**
 * @Author lux
 * @date: 2020/1/3
 * @desc:  公共错误定义
 */
public class CommonEnum {
    public static final String  OK_CODE= "0";
    public static final String  OK_MSG = "成功";

    public static final String  FAIL_CODE= "-1";
    public static final String  FAIL_MSG= "操作失败";

    public static final String  RSA_GENERATE_FAIL_CODE= "-4";
    public static final String  RSA_GENERATE_FAIL_MSG= "ras公私钥对生成错误";

    public static final String  ENCRYPT_AND_DECODE_CODE= "-5";
    public static final String  ENCRYPT_AND_DECODE_MSG= "加解密报错";


    public static final String  USERNAME_REPEAT_CODE= "001";
    public static final String  USERNAME_REPEAT_MSG= "用户名重复";

    public static final String  USER_ABNORMAL_CODE= "002";
    public static final String  USER_ABNORMAL_MSG= "用户异常";

    public static final String  PWD_ERROR_CODE= "003";
    public static final String  PWD_ERROR_MSG= "密码错误";

    public static final String  CLIENT_ERROR_CODE= "004";
    public static final String  CLIENT_ERROR_MSG= "客户端信息错误";

    public static final String  TOKEN_EMPTY_CODE= "005";
    public static final String  TOKEN_EMPTY_MSG= "token信息为空";

    public static final String  CLIENT_NOT_EXSIT_CODE= "006";
    public static final String  CLIENT_NOT_EXSIT_MSG= "客户端信息不存在";

    public static final String  SECRET_ERROR_CODE= "007";
    public static final String  SECRET_ERROR_MSG= "clientSecret错误";

    public static final String  GRANT_TYPE_ERROR_CODE= "008";
    public static final String  GRANT_TYPE_ERROR_MSG= "不支持的grantType";

    public static final String  REDIRECT_URI_ERROR_CODE= "009";
    public static final String  REDIRECT_URI_ERROR_MSG= "回调地址不正确";

    public static final String  AUTHORIZATION_CODE_ERROR_CODE= "010";
    public static final String  AUTHORIZATION_CODE_ERROR_MSG= "authorizationCode错误";

    public static final String  REFRESH_TOKEN_ERROR_CODE= "011";
    public static final String  REFRESH_TOKEN_ERROR_MSG= "refreshToken异常";

    public static final String  GATEWAY_ERROR_CODE= "012";
    public static final String  GATEWAY__ERROR_MSG= "权限错误";



}
